cmake_minimum_required (VERSION 3.0)
project (turtle_control)
add_executable(turtle_control turtle_control.cpp)
# 查找rclcpp头文件和库文件的路径
find_package(rclcpp REQUIRED) 
find_package(rclcpp REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(turtlesim REQUIRED)

# 给可执行文件包含头文件
target_include_directories(turtle_control PUBLIC ${rclcpp_INCLUDE_DIRS})
# 给可执行文件链接库文件
target_link_libraries(turtle_control ${rclcpp_LIBRARIES})cutable(turtle_circle  src/turtle_circle.cpp)
# ament_target_dependencies(turtle_circle rclcpp geometry_msgs)

add_executable(turtle_control  src/turtle_control.cpp)
